import React, { Component } from "react";
import { connect } from "react-redux";
import "./App.css";
import "@css/public.less";
import { ConfigProvider } from "antd";
import zhCN from "antd/es/locale/zh_CN";
import moment from "moment";
import "moment/locale/zh-cn";
moment.locale("zh-cn");

class App extends Component {
  componentDidMount() {}

  render() {
    return (
      <>
        <ConfigProvider locale={zhCN}>{this.props.children}</ConfigProvider>
      </>
    );
  }
}

export default connect((state) => {
  return {
    userInfo: state.userInfo,
  };
})(App);
